package com.qdxwx.models.picture;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

public class Picture implements Serializable {
    private static final long serialVersionUID = 8647912227400337978L;

    //主键ID
    private int id;

    //图片名称
    private String title;

    //频道Id
    private int channelId;

    //分类ID
    private int categoryId;

    //分类名称
    private String categoryName;

    //专业ID
    private int subjectId;

    //类型
    private Integer typeId;

    //销售价格（实际支付价格）
    private Integer price;

    //图片拓展名
    private String fileExt;

    //高
    private long fileSize;

    //分辨率
    private int imgDpi;

    //宽
    private int imgWidth;

    //高
    private int imgHeight;

    //封面图地址
    private String coverUrl;

    //图片预览地址
    private String viewUrl;

    //图片原图地址
    private String imgUrl;

    //销售数量
    private int downCount;

    //浏览数量
    private int viewCount;

    //固顶
    private Integer isTop;

    //推荐
    private Integer isElite;

    //等级id
    private Integer levelId;

    //1 正常　0　下架   -1删除
    private Integer status;

    //上传者
    private long userId;

    //上传者名称
    private String userName;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;//课程添加时间

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getChannelId() {
        return channelId;
    }

    public void setChannelId(int channelId) {
        this.channelId = channelId;
    }

    public int getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(int categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public int getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(int subjectId) {
        this.subjectId = subjectId;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getFileExt() {
        return fileExt;
    }

    public void setFileExt(String fileExt) {
        this.fileExt = fileExt;
    }

    public long getFileSize() {
        return fileSize;
    }

    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }

    public int getImgDpi() {
        return imgDpi;
    }

    public void setImgDpi(int imgDpi) {
        this.imgDpi = imgDpi;
    }

    public int getImgWidth() {
        return imgWidth;
    }

    public void setImgWidth(int imgWidth) {
        this.imgWidth = imgWidth;
    }

    public int getImgHeight() {
        return imgHeight;
    }

    public void setImgHeight(int imgHeight) {
        this.imgHeight = imgHeight;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public String getViewUrl() {
        return viewUrl;
    }

    public void setViewUrl(String viewUrl) {
        this.viewUrl = viewUrl;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public int getDownCount() {
        return downCount;
    }

    public void setDownCount(int downCount) {
        this.downCount = downCount;
    }

    public int getViewCount() {
        return viewCount;
    }

    public void setViewCount(int viewCount) {
        this.viewCount = viewCount;
    }

    public Integer getIsTop() {
        return isTop;
    }

    public void setIsTop(Integer isTop) {
        this.isTop = isTop;
    }

    public Integer getIsElite() {
        return isElite;
    }

    public void setIsElite(Integer isElite) {
        this.isElite = isElite;
    }

    public Integer getLevelId() {
        return levelId;
    }

    public void setLevelId(Integer levelId) {
        this.levelId = levelId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Picture{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", channelId=" + channelId +
                ", categoryId=" + categoryId +
                ", categoryName='" + categoryName + '\'' +
                ", subjectId=" + subjectId +
                ", typeId=" + typeId +
                ", price=" + price +
                ", fileExt='" + fileExt + '\'' +
                ", fileSize=" + fileSize +
                ", imgDpi=" + imgDpi +
                ", imgWidth=" + imgWidth +
                ", imgHeight=" + imgHeight +
                ", coverUrl='" + coverUrl + '\'' +
                ", viewUrl='" + viewUrl + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", downCount=" + downCount +
                ", viewCount=" + viewCount +
                ", isTop=" + isTop +
                ", isElite=" + isElite +
                ", levelId=" + levelId +
                ", status=" + status +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", updateTime=" + updateTime +
                ", createTime=" + createTime +
                '}';
    }
}
